package com.tinem.platform.module.commons.util;

import com.tinem.platform.module.pojo.enums.common.Env;
import lombok.AllArgsConstructor;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className EnvUtil
 * @description TODO
 * @site
 * @company
 * @create 2021/12/24 11:52:37
 */
@AllArgsConstructor
public class EnvUtil {

    String active;

    public boolean isDev(){
        return active.equals(Env.dev.name());
    }
    public boolean isTest(){
        return active.equals(Env.test.name());
    }
    public boolean isSim(){
        return active.equals(Env.sim.name());
    }
    public boolean isPrd(){
        return active.equals(Env.prd.name());
    }
}
